package com.maxmind.domain;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.maxmind.db.MaxMindDbConstructor;
import com.maxmind.db.MaxMindDbParameter;

import lombok.Data;

/**
 * 类ContinentInfo的实现描述：洲信息
 *
 * @author sunyj 2025/3/21 14:46
 */
@Data
public class ContinentInfo {

    private String code;
    private Long geonameId;
    private Map<String, String> names;

    @MaxMindDbConstructor
    public ContinentInfo (
            @MaxMindDbParameter(name="code") String code,
            @MaxMindDbParameter(name="geoname_id") Long geonameId,
            @MaxMindDbParameter(name="names") Map<String, String> names) {
        this.code = code;
        this.geonameId = geonameId;
        this.names = names;
    }
}
